/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.enrstu.service;

import me.zhengjie.modules.enrstu.domain.ReviewInformation;
import me.zhengjie.modules.enrstu.service.dto.*;
import me.zhengjie.utils.PageResult;
import org.springframework.data.domain.Pageable;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
* @website https://eladmin.vip
* @description 审核信息-服务接口
* @author yyx
* @date 2024-11-01
**/
public interface ReviewInformationService {

    /**
     * 根据ID查询
     * @param id ID
     * @return ReviewInformationDto
     */
    ReviewInformationDto findById(String id);


    /**
    * 导出数据
    * @param response /
    * @throws IOException /
    */
    void download(HttpServletResponse response) throws IOException;

    /**
     * 创建审核信息
     * @param signUpReportInfoId /
     * @return /
     */
    ReviewInformation create(String signUpReportInfoId);



    /**
     * 查询待审核列表
     * @param resources /
     * @return /
     */

    PageResult<ReviewWaitInfoListDto> findReviewWaitInfoList(ReviewWaitInfoQueryCriteria resources, Pageable pageable);

    /**
     * 查询已审核列表
     * @param resources /
     * @return /
     */
    PageResult<ReviewAlreadyOrAcceptedInfoListDto> findReviewAlreadyInfoList(ReviewAlreadyOrAcceptedInfoQueryCriteria resources,Pageable pageable);
    /**
     * 查询录取列表
     * @param resources /
     * @return /
     */
    PageResult<ReviewAlreadyOrAcceptedInfoListDto> findReviewAcceptedInfoList(ReviewAlreadyOrAcceptedInfoQueryCriteria resources,Pageable pageable);
    /**
     * 审核
     * @param ReviewOrAcceptedHandler /
     */
    void review(ReviewOrAcceptedHandler ReviewOrAcceptedHandler);
    /**
     * 审核
     * @param acceptedHandler /
     */
    void accepted(List<ReviewOrAcceptedHandler> acceptedHandler);
    /**
     * 获取动态list
     * @return /
     */
    ReviewInformationDto findRwDynamicsList(Long dept,boolean isRepeatedReview);
}